<?php
    try
    {
        error_reporting(E_ALL);
        session_start();
        ob_start();
        set_include_path('.' . PATH_SEPARATOR
                    . './lib/' . PATH_SEPARATOR
                    . './modules/' . PATH_SEPARATOR
                    . './models/' . PATH_SEPARATOR
                    . './ajax/' . PATH_SEPARATOR
                    . './modules/auth/controller/' . PATH_SEPARATOR);
        define('MAIN_PATH',dirname(__FILE__).'/');
        include_once(MAIN_PATH.'lib/autoload.php');

        $controller = new MainController();
        $controller -> render();
    }
    catch(Exception $e)
    {
        echo '<meta http-equiv="Content-type" content="text/html; charset=utf-8" />';
        echo "<pre>";
        echo $e->getMessage();
        exit;
    }
?>